/*
 * Created on 13/Dez/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package libjdc.dc.client;

import libjdc.dc.client.HubSession;

/**
 * @author Daniel Botelho
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Hub {
    
    private static int DEFAULT_PORT = 411;
    private static String DEFAULT_HUBANME = "";
    

    private String host;
    private int port;
    
    private HubInfo hubInfo;
    private HubSession hubSession;
        
    public Hub(String host,int port) {
        this(host,port, new HubInfo());
    }
    
    public Hub(String host,int port,HubInfo hubInfo) {
        super();
        this.host = host;
        this.port = port;
        this.hubInfo = hubInfo;
        hubSession = new HubSession();
    }
    
    /**
     * @return Returns the host.
     */
    public String getHost() {
        return host;
    }
    
    /**
     * @return Returns the port.
     */
    public int getPort() {
        return port;
    }

    
    public String toString(){
        return this.host+":"+this.port;
    }

    public HubSession getHubSession() {
        return hubSession;
    }

    public HubInfo getHubInfo() {
        return hubInfo;
    }

    public void setHubInfo(HubInfo hubInfo) {
        this.hubInfo = hubInfo;
    }

}
